/**
 * 
 */
package ru.cargobroker.maip.contracts.cargo.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

import ru.cargobroker.maip.base.db.DbConstants;
import ru.cargobroker.maip.base.domain.BaseEntity;

/**
 * Detail information of Cargo Insurance Object
 * 
 * 
 * @author M.Frendiy
 * @since 0.0.1
 */
@Entity
@Table(name="CARGO_DETAIL")
public class CargoDetail extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * Name of Cargo
	 */
	@Column(name="OBJECT_NAME", length=DbConstants.NAME_BIG_LEN)
	private String objectName;
	
	/**
	 * Cargo is not dangerous or dangerous: null, false - not dangerous, true - dangerous
	 */
	@Column(name="DANGEROUS")
	private Boolean dangerous = true;

	/**
	 * Cargo is not overall or overall: null, false - not overall, true - overall
	 */
	@Column(name="OVERALL")
	private Boolean overall = true;
	
	/**
	 * Cargo package 
	 */
	@Enumerated(EnumType.STRING)
	@Column(name="PACKAGE_TYPE")
	private PackageType packageType;
	
	
	
	
	public Boolean isDangerous() {
		return dangerous;
	}


	public void setDangerous(Boolean dangerous) {
		this.dangerous = dangerous;
	}


	public String getObjectName() {
		return objectName;
	}


	public void setObjectName(String objectName) {
		this.objectName = objectName;
	}


	public Boolean getOverall() {
		return overall;
	}


	public void setOverall(Boolean overall) {
		this.overall = overall;
	}


	public PackageType getPackageType() {
		return packageType;
	}


	public void setPackageType(PackageType packageType) {
		this.packageType = packageType;
	}


}
